package com.dona.imsidetector.db.entity;

import com.dona.imsidetector.bean.vo.BwListVo;
import com.dona.imsidetector.utils.DeviceUtil;

import org.xutils.db.annotation.Column;
import org.xutils.db.annotation.Table;

import java.util.Date;

@Table(name ="imsilist")
public class BwList {

    public BwList(){

    }

    public BwList(String user, String title){
        this.uuid = DeviceUtil.getUUID();
        this.createTime = new Date();
        this.user = user;
        this.title = title;
    }

    public BwList(BwListVo bwListVo){
        this.uuid = bwListVo.getUuid();
        this.createTime = bwListVo.getCreateTime();
        this.user = bwListVo.getUser();
        this.title = bwListVo.getTitle();
    }

    @Column(name = "uuid", isId = true)
    private String uuid;

    @Column(name = "title")
    private String title;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name="user")
    private String user;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getCreate_time() {
        return createTime;
    }

    public void setCreate_time(Date create_time) {
        this.createTime = create_time;
    }

    @Override
    public String toString() {
        return "ImsiList{" +
                "uuid='" + uuid + '\'' +
                ", title='" + title + '\'' +
                ", create_time=" + createTime +
                ", user='" + user + '\'' +
                '}';
    }
}
